package com.zhumingming.schedule;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

import com.ruomeng.robot.service.GoodsUpdateService;
 
/**
 * 定时任务
 * @author Administrator
 *
 */
@Configuration
@EnableScheduling
public class SchedulingConfig {
	
	
	@Autowired
    private GoodsUpdateService testService;
	
	
   
    @Scheduled(cron = "0 0/5 * * * ? ") // 每5分钟执行一次
    public void scheduler() {
        System.out.println(">>>>>>>>> SchedulingConfig.scheduler()");
    }
}